You are here: Scripting Reference > Functions > Trading Partner > ActivatePartnerByWhere

ActivatePartnerByWhere

Declaration

function TFloActionManager.ActivatePartnerByWhere(aWhere: string): boolean;

Example

procedure OnMapEvent(var Value:Variant);

begin

Action.ActivatePartnerByWhere('where partnertype=1 and supplierid=''ABC''')

end;

Description

Finds and activates a Trading Partner based on the filter provided by aWhere parameter. aWhere is a where clause for a SQL query. You can use any fields from the FLO_TRADINGPARTNERS table in the Flow configuration database to build your where clause.

The fields in the FLO_TRADINGPARTNERS table include:

Also see Trading Partner Attributes